﻿@model ViewDataBusiness.ViewSetting
@{
    ViewBag.Title = Model.ViewTitle;

    ViewBag.jQuery = true;
    ViewBag.jQueryUI = true;
    ViewBag.Json = true;
    ViewBag.Flexigrid = true;
    ViewBag.Global = true;
    ViewBag.CKEditor = true;
    ViewBag.Uploadify = true;
    ViewBag.FlowInfo_General = true;

    ViewBag.Css = "/Content/ViewSetting/Site.css";
    ViewBag.Js = "/Content/" + ViewContext.RouteData.Values["ViewForder"] + "/" + ViewContext.RouteData.Values["ViewName"] + ".js";

    Layout = "~/Views/_Template.cshtml";

    //列表数据试图名称
    string ViewName = "ProductPrice";
}      
<script type="text/javascript">var JsonOriginal = @Html.Raw(Model.JsonString);</script> 
<input type="hidden" id="UrlBack" value="@Html.Raw(Tools.AsynchronousLogin.GetAsynchronousLoginUrl(String.Format("http://{0}/ViewProcess/Show/{1}/{2}?SearchKey=" + Request.QueryString["SearchKey"] + "&SortName=" + Request.QueryString["SortName"] + "&SortOrder=" + Request.QueryString["SortOrder"] + "&MaxRecord=" + Request.QueryString["MaxRecord"] + "&StartRecord=" + Request.QueryString["StartRecord"] + "&Status=" + Request.QueryString["Status"] + "&SDate=" + (Request.QueryString["Status"] == "4" ? Request.QueryString["SDate"] : "") + "&EDate=" + (Request.QueryString["Status"] == "4" ? Request.QueryString["EDate"] : "") + "&Permissions={3}", Request.Url.Authority, ViewContext.RouteData.Values["ViewForder"], ViewName, Server.UrlEncode(Request.QueryString["Permissions"])), Request.QueryString["Permissions"]))" />
<table id="MainTable" cellpadding="0" cellspacing="4">
    <tr id="TitleTR"><td class="PageTitle"><div class="Title">@Model.ViewTitle</div></td></tr>  
    <tr id="TabTR"><td class="TopTD"><div id="TabRadio"><input type="radio" id="radio1" name="TabRadio" value="基本信息" checked="checked" /><label for="radio1">基本信息</label><input type="radio" id="radio2" name="TabRadio" value="流程记录" /><label for="radio2">流程记录</label><input type="radio" id="radio3" name="TabRadio" value="相关评论" /><label for="radio3">相关评论</label><input type="radio" id="radio4" name="TabRadio" value="相关文档" /><label for="radio4">相关文档</label></div></td></tr> 
    <tr id="TabTR1"><td class="Unit">
        <div id="MasterInput"></div> 
        <div id="DetailLine" style="margin:4px -4px 0 0;background-color:#CFE5E5;height:1px;display:none;"><span></span></div> 
        <div id="DetailList" style="margin: 4px 0 0 4px;display:none;">
            <table id="SelectTable" width="100%" cellpadding="0" cellspacing="0">
                <tr><td valign="top" id="STableTD" style="display:none">
                    <table id="STable" cellpadding="0" cellspacing="0">
                        <tr id="SelectSearchTR"><td class="Search" style="padding:0 4px 2px 0;"></td></tr>         
                        <tr><td id="SelectListTD" style="padding:2px 4px 2px 0;"></td></tr>    
                        <tr id="SelectPageTR"><td class="Page" style="padding:2px 4px 0 0;"></td></tr>
                    </table>
                </td>
                <td valign="top" id="CTableTD">
                    <table id="CTable" cellpadding="0" cellspacing="0">
                        <tr><td id="CheckListTD"></td></tr>
                    </table>                                      
                </td></tr>
            </table>
        </div>
    </td></tr>
    <tr id="TabTR2" style="display:none"><td class="Unit">
        <div id="LogList" style="margin: 4px 0 0 4px;">
            <table id="LTable" cellpadding="0" cellspacing="0">
                <tr><td id="LogListTD"></td></tr>
            </table>  
        </div>
    </td></tr>     
    <tr id="TabTR3" style="display:none"><td class="Unit">   
        <div class="Panel" style="float:none;clear:both;display:none;"><table cellpadding="0" cellspacing="0"><tr><td class="Input"><textarea id="CommentText"></textarea></td></tr></table></div>
    </td></tr>
    <tr id="TabTR4" style="display:none"><td class="Unit">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr><td id="FileDiv"></td></tr>
            <tr><td id="UploadDoc_Panel" style="display:none"><input type="file" name="DocUpload" id="DocUpload" /></td></tr>
        </table>
    </td></tr>
    <tr id="ButtonTR"><td class="ButtonUnit"><button id="ButtonSelct">选择产品</button><button id="ButtonNext">下一步</button><button id="ButtonSave">保存</button><button id="ButtonSubmit"></button><button id="ButtonDelete">删除</button><button id="ButtonRevoked">撤销</button><button id="ButtonPrint">打印</button><button id="ButtonBack">返回</button></td></tr>   
</table>
<div id="FileHTML" style="display:none">
<input type="hidden" name="ItemType" /> 
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">上传时间</td><td class="Input"><input type="text" name="ItemTime" readonly="readonly" style="width:150px" /></td></tr></table></div> 
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">文件名称</td><td class="Input"><input type="text" name="ItemName" class="Required" maxlength="100" style="width:521px" /></td></tr></table></div> 
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">外部下载</td><td class="Input"><input type="checkbox" name="ItemEnable" /></td></tr></table></div>                                                                                                                             
<div class="AIcon"><div class="Icon DownLoad"><div class="ui-state-default ui-corner-all" style="cursor:default;"><a target="_blank" style="cursor:pointer;" class="ui-icon ui-icon-arrowthickstop-1-s" onmouseover="$(this).parent().addClass('ui-state-hover');" onmouseout="$(this).parent().removeClass('ui-state-hover');"></a></div></div></div>
<div class="AIcon"><div class="Icon DeleteFile" onclick="window.upLoadFile.DeleteFile(this);" title="永久删除该文件"><div class="ui-state-default ui-corner-all" onmouseover="$(this).addClass('ui-state-hover');" onmouseout="$(this).removeClass('ui-state-hover');"><span class="ui-icon ui-icon-close"></span></div></div></div>                          
<div class="Clear"></div>
</div>
<div id="CommentHTML" style="display:none">            
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">评论用户</td><td class="Input"><input type="text" name="CommentUserID" readonly="readonly" style="width:150px" /><input type="hidden" name="CommentAutoID" /></td></tr></table></div>
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">用户姓名</td><td class="Input"><input type="text" name="CommentUsername" readonly="readonly" style="width:150px" /></td></tr></table></div>
<div class="Panel"><table cellpadding="0" cellspacing="0"><tr><td class="Name">评论时间</td><td class="Input"><input type="text" name="CommentDateTime" readonly="readonly" style="width:150px" /></td></tr></table></div>
<div class="AIcon" style="float:right;display:none;"><div class="Icon"><div class="ui-state-default ui-corner-all" onmouseover="$(this).addClass('ui-state-hover');" onmouseout="$(this).removeClass('ui-state-hover');"><span class="ui-icon ui-icon-close"></span></div></div></div>
<div class="Clear"></div>
<div class="Panel" style="float:none;clear:both;"><table cellpadding="0" cellspacing="0" width="100%"><tr><td class="Input"><div class="CommentText"></div></td></tr></table></div>
</div>